﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using AKMII.DMRA.Common;

namespace AKMII.DMRA.Web
{
    public partial class MainPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void linkSignout_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Redirect(Constants.LoginUrl);
        }

        public string GetUserName()
        {
            string username = string.Empty;

            if (!string.IsNullOrEmpty(Context.User.Identity.Name))
            {
                username = "Welcome " + Context.User.Identity.Name + " ";
            }

            return username;
        }
    }
}
